package com.atguigu.gmall.search.vo;

import com.atguigu.gmall.search.Goods;
import lombok.Data;

import java.util.List;

/**
 * @ClassName: SearchRespVo
 * @Author: WDD
 * @CreateTime: 2023-01-29  14:11
 * @Description: 检索结果vo
 */
@Data
public class SearchRespVo {

    private SearchParamVo searchParamVo;

    private String trademarkParam;

    private List<Props> propsParamList;

    private List<Trademark> trademarkList;

    private List<Attrs> attrsList;

    private String urlParam;

    private OrderMap orderMap;

    private List<Goods> goodsList;

    private Integer pageNo;

    private Long totalPages;

    @Data
    public static class OrderMap{
        private String type;
        private String sort;
    }

    @Data
    public static class Attrs{
        private String attrName;
        private List<String> attrValueList;
        private Long attrId;
    }

    @Data
    public static class Trademark{
        private Long tmId;
        private String tmName;
        private String tmLogoUrl;
    }

    @Data
    public static class Props{
        private String attrName;
        private String attrValue;
        private Long attrId;
    }
}
